<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Document</title>
	</head>
	<body>
		<!-- 数据的单向绑定 -->
		<!-- 给html标签的属性绑定 -->
		<div id="app">
			<a v-bind:href="link">gogogo</a>
			
			<!-- class，style {class名: 加上？} -->
			<span v-bind:class="{active:isActive,'text-danger':hasError}">你好</span>
			<span v-bind:style="{color:color,'font-size':size}">Vue</span>
		</div>

		<script src="../node_modules/vue/dist/vue.js"></script>

		<script type="text/javascript">
			let vm = new Vue({
				el: "#app",
				data: {
					link: "https://www.baidu.com",
					isActive:true,
					hasError:true,
					color:'red',
					size:'90px'
				}
			});
		</script>
	</body>
</html>
